<?php
/**
 * @filesource:					AdminUserModel.class.php
 * @desc:						管理员模型类
 * 
 * @author:						houyining
 * @copyright:					hou.yining@gmail.com
 * @date:						2011-04-04
 */

class AdminUserModel extends Model{
	//map字段的值
	protected $_map = array (
		'name'		=> 'account',	
	);
	
	//增加默认系统填充字段
	protected $_auto = array(
		array('password', 'md5', MODEL::MODEL_INSERT, 'function'),
		array('create_time', 'time', MODEL::MODEL_INSERT, 'function'),
		array('last_login', 'time', MODEL::MODEL_UPDATE, 'function'),
		array('last_ip', 'get_client_ip', MODEL::MODEL_UPDATE, 'function'),
		array('update_time', 'time', MODEL::MODEL_UPDATE, 'function'),
		array('verify', '0'),
	);
}
?>